<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 인클루드 되므로 보여질 부분만 넣는다. -->

<script>
function signinCallback(authResult) {
  if (authResult['access_token']) {
    // Successfully authorized
    // Hide the sign-in button now that the user is authorized, for example:
    document.getElementById('signinButton').setAttribute('style', 'display: none');
  } else if (authResult['error']) {
    // There was an error.
    // Possible error codes:
    //   "access_denied" - User denied access to your app
    //   "immediate_failed" - Could not automatically log in the user
    // console.log('There was an error: ' + authResult['error']);
  }
}

function showLoginTable(){
	if($("#loginTable").css("display") == "block"){
		$("#loginTable").css({
			"display":"none"
		});	
	}else{
		$("#loginTable").css({
			"display":"block"
		});	
	}
}
function memberManage(){
	window.location.assign("/kosta_project_final_taxi/info.do");
}
function logout(){
	window.location.assign("/kosta_project_final_taxi/logout.do");
}
</script>
<li id="home" ><a class="codrops-icon codrops-icon-home" href="http://127.0.0.1:8088/kosta_project_final_taxi/index.jsp"><span style="padding-left:5px">택쒸</span></a></li>
<c:choose>
	<c:when test="${sessionScope.login_info == null}">
		<li id="logIn" onclick="showLoginTable()"><a class="codrops-icon codrops-icon-prev"><span>로그인</span></a></li>
	</c:when>
	<c:otherwise>
		<li id="logIn" onclick="memberManage()"><a class="codrops-icon codrops-icon-prev"><span>회원정보</span></a></li>
		<li id="logIn" onclick="logout()"><a class="codrops-icon codrops-icon-prev"><span>로그아웃</span></a></li>
	</c:otherwise>
</c:choose>

<li><a class="codrops-icon codrops-icon-drop" href="/kosta_project_final_taxi/list.do"><span>공지사항 확인</span></a></li>
<!--
>>>>>>> .r153
<li id="signinButton">
<span>
  <span	
    class="g-signin"
    data-callback="signinCallback"
    data-clientid="481475953217.apps.googleusercontent.com"
    data-cookiepolicy="single_host_origin"
    data-requestvisibleactions="http://schemas.google.com/AddActivity"
    data-scope="https://www.googleapis.com/auth/plus.login">
  </span>
</span>
</li>
-->